<?php
class Configurations {
  # function get web configuration from database  
  function getConfigurations($configstring) {
    global $dbi;
    
    $query = "select site_status, offline_message, error_message, site_name, paging_limit, favicon, time_offset, server_offset, country_local, error_reporting, meta_description, meta_keywords, default_mail, webmaster_mail, mailfrom_name, edit_form from wb_config where kode = 'configcode'";    
    $row = $dbi->get_row($query);
    
    return $row->$configstring; 
  }
}
?>
